package com.zhou.message.dto;

import com.zhou.org.common.EnumConstant;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author lang.zhou
 * @since 2023/3/10 15:01
 */
@Data
public class MessageSendDto implements Serializable {

    @NotBlank
    private String title;

    @NotBlank
    private String content;

    @NotNull
    private Integer type = EnumConstant.MSG_TYPE_NORMAL;

    private List<Integer> receivers ;

    private List<Integer> duplicates ;

    private List<String> files ;

    @NotNull
    private Integer level = 0;

    @NotNull
    private Integer timer = 0;
}
